package com.zzj.security.jwt.controller;

import com.zzj.security.jwt.entity.dto.HttpResult;
import com.zzj.security.jwt.service.SysMenuService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping(value = "/ajax/admin/sysMenu")
public class SysMenuController {

    @Autowired
    private SysMenuService sysMenuService;

    @RequestMapping("")
    public HttpResult list() {
        return HttpResult.success().add(sysMenuService.findAll());
    }

}
